package 力扣日常刷题.木22一月.第16天0128;

/**
 * @author 帅小伙
 * @date 2022/1/28
 * @description
 */
public class Demo16字符串简单判断句子是否全字母句 {


    public boolean checkIfPangram(String sentence) {
        int[] arr = new int[26];
        for (char c : sentence.toCharArray()) {
            arr[c-'a']++;
        }
        for (int i = 0; i < 26; i++) {
            if(arr[i] == 0) return false;
        }
        return true;
    }
}
